package com.demo.pojo;

import java.util.Date;
import java.util.List;

public class Article {
    private Integer id;

    private String title;

    private String link;

    private Date createtime;

    private ArticleContent articleContent;
    private List<ArticleKeyword> articleKeyword;

    public ArticleContent getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(ArticleContent articleContent) {
        this.articleContent = articleContent;
    }

    public List<ArticleKeyword> getArticleKeyword() {
        return articleKeyword;
    }

    public void setArticleKeyword(List<ArticleKeyword> articleKeyword) {
        this.articleKeyword = articleKeyword;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", link=").append(link);
        sb.append(", createtime=").append(createtime);
        sb.append("]");
        return sb.toString();
    }
}